var str = 'A';
var height = 10;
let result;
for (var i = 0; i < height; i++)
{
  result = '';
  for (var j = 0; j < i+1; j++)
  {
    result += str;
  }
  console.log(result);
}
